<?php 
namespace Common\Model;
use Think\Model\RelationModel;
class YgclClassModel extends RelationModel{
	protected $_link = array(
			'district'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclDistrict',
					'foreign_key'=>'did',
					'as_fields'=>'title:district',
			)
	);
}
?>